html,
body,
#root {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* 酷炫的背景效果 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 背景渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 动态粒子背景 */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* 科技感网格背景 */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* 酷炫的登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 48px 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    animation: cardFloat 6s ease-in-out infinite;
    overflow: hidden;
}

/* 卡片浮动动画 */
@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

/* 卡片内部光效 */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: cardShine 3s ease-in-out infinite;
}

@keyframes cardShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* 酷炫的登录标题 */
.login-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 24px;
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    border-radius: 1px;
}

.login-title h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

.login-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 酷炫的表单样式 */
.login-form .ant-form-item {
    margin-bottom: 28px;
}

.login-form .ant-form-item-label>label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    height: auto;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-form .ant-input,
.login-form .ant-input-password {
    height: 52px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 20px;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-form .ant-input::placeholder,
.login-form .ant-input-password .ant-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.login-form .ant-input:focus,
.login-form .ant-input-password:focus,
.login-form .ant-input:hover,
.login-form .ant-input-password:hover {
    border-color: #00d4ff;
    box-shadow:
        0 0 0 4px rgba(0, 212, 255, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.login-form .ant-input-password .ant-input {
    border: none;
    height: 48px;
    background: transparent;
    color: #333;
}

.login-form .ant-input-password .ant-input:focus {
    box-shadow: none;
    background: transparent;
}

.login-form .ant-input-password:hover .ant-input {
    background: transparent;
}

.login-form .ant-input-password .ant-input-suffix {
    color: rgba(0, 0, 0, 0.6);
}


/* 酷炫的记住我选项 */
.remember-me {
    margin: 32px 0 36px 0;
    text-align: right;
}

.remember-me .ant-checkbox-wrapper {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.remember-me .ant-checkbox-checked .ant-checkbox-inner {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.remember-me .ant-checkbox:hover .ant-checkbox-inner {
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

/* 登录按钮容器 */
.login-form .ant-form-item:last-child {
    text-align: center;
    margin-bottom: 0;
}

/* 酷炫的登录按钮 */
.login-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.8px;
    display: inline-block;
    margin: 0 50px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #f5576c 100%);
    box-shadow:
        0 12px 35px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.login-btn:active {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 50%, #e53e3e 100%);
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 标签页响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 40px 32px;
        max-width: 100%;
    }

    .login-tabs .ant-tabs-tab {
        padding: 10px 20px;
        font-size: 15px;
    }

    .login-tab-content .login-title h1 {
        font-size: 22px;
    }

    .login-tab-content .login-title p {
        font-size: 13px;
    }

    .third-party-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .third-party-btn {
        width: 100%;
        min-width: auto;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login-tabs .ant-tabs-tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .login-tab-content .login-title h1 {
        font-size: 20px;
    }

    .login-tab-content .login-title p {
        font-size: 12px;
    }

    .login-form .ant-input,
    .login-form .ant-input-password {
        height: 44px;
        font-size: 14px;
    }

    .login-btn {
        height: 48px;
        font-size: 15px;
    }

    .third-party-btn {
        height: 48px;
        font-size: 14px;
        padding: 0 20px;
    }

    .third-party-btn img {
        width: 18px;
        height: 18px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .login-tabs .ant-tabs-tab {
        padding: 14px 28px;
        font-size: 17px;
    }

    .third-party-buttons {
        gap: 24px;
    }

    .third-party-btn {
        min-width: 200px;
        height: 60px;
        font-size: 16px;
        padding: 0 28px;
    }

    .third-party-btn img {
        width: 22px;
        height: 22px;
    }
}

/* 酷炫的登录标签页样式 */
.login-tabs {
    margin-bottom: 0;
}

.login-tabs .ant-tabs-nav {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-tabs .ant-tabs-nav::before {
    border-bottom: none;
}

.login-tabs .ant-tabs-tab {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.login-tabs .ant-tabs-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.login-tabs .ant-tabs-tab:hover::before {
    opacity: 1;
}

.login-tabs .ant-tabs-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.login-tabs .ant-tabs-tab.ant-tabs-tab-active {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.login-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.login-tabs .ant-tabs-ink-bar {
    display: none;
}

.login-tabs .ant-tabs-content-holder {
    padding: 0;
}

.login-tabs .ant-tabs-tabpane {
    padding: 0;
}

/* 酷炫的标签页内容区域 */
.login-tab-content {
    min-height: 400px;
    animation: contentFadeIn 0.6s ease-out;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-tab-content .login-title {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: none;
    padding-bottom: 0;
}

.login-tab-content .login-title h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.login-tab-content .login-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* PC端第三方登录样式 */
.third-party-login {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.third-party-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* PC端登录按钮基础样式 */
.third-party-btn {
    min-width: 180px;
    height: 56px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1;
    padding: 0 24px;
    margin: 0;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.third-party-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.third-party-btn:hover::before {
    opacity: 1;
}

.third-party-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.third-party-btn:hover::after {
    left: 100%;
}

/* Gitee登录按钮样式 */
.gitee-login-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.gitee-login-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
    border-color: #ff5252;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    transform: translateY(-3px);
}

.gitee-login-btn:active {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 人脸识别登录按钮样式 */
.face-login-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.face-login-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

.face-login-btn:active {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* 按钮图标样式 */
.third-party-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    filter: brightness(1.2) contrast(1.1);
    transition: transform 0.3s ease;
}

.third-party-btn:hover img {
    transform: scale(1.1);
}

.third-party-btn span {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.third-party-btn:hover span {
    transform: translateX(2px);
}